<!--
 * @docName: popupsPompt.vue
 * @Author: mwl
 * @Date: 2023/9/27
 * @LastEditors: zhongxiong
 * @LastEditTime: 18:26
-->
<template>
  <a-modal v-model="popConfig.visible" :destroyOnClose="true" :footer="false" >
    <div style='text-align: center;box-sizing: border-box;padding-top: 30px;'>
      <a-icon style='font-size: 60px;color: #2f54eb;' :type="popConfig.icon" theme="filled" />
      <h2 style='margin-top: 20px'>{{popConfig.title}}</h2>
      <p>{{popConfig.content}}</p>
      <a-button type="primary" @click='handleOk()'>确 认</a-button>
    </div>

  </a-modal>
</template>

<script>
export default {
  name: 'popupsPompt',
  props:['popConfig'],
  data() {
    return {}
  },
  methods:{
    handleOk(){
      if(this.$route.query.masterType){
        this.$router.back()
      }else{
        this.$emit('popUpsClick',{'name':'handleOk'})
      }

    }
  }
}
</script>

<style scoped>

</style>
